﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing.border {
    import org.aswing.*;
    import org.aswing.geom.*;
    import org.aswing.graphics.*;

    public class EmptyBorder extends DecorateBorder {

        private var margin:Insets;

        public function EmptyBorder(_arg1:Border=null, _arg2:Insets=null){
            super(_arg1);
            if (_arg2 == null){
                this.margin = new Insets();
            } else {
                this.margin = _arg2.clone();
            };
        }
        public static function createIndent(_arg1:int):EmptyBorder{
            return (new EmptyBorder(null, new Insets(_arg1, _arg1, _arg1, _arg1)));
        }

        public function setTop(_arg1:int):void{
            this.margin.top = _arg1;
        }
        public function setLeft(_arg1:int):void{
            this.margin.left = _arg1;
        }
        public function setBottom(_arg1:int):void{
            this.margin.bottom = _arg1;
        }
        public function setRight(_arg1:int):void{
            this.margin.right = _arg1;
        }
        public function getTop():int{
            return (this.margin.top);
        }
        public function getLeft():int{
            return (this.margin.left);
        }
        public function getBottom():int{
            return (this.margin.bottom);
        }
        public function getRight():int{
            return (this.margin.right);
        }
        override public function updateBorderImp(_arg1:Component, _arg2:Graphics2D, _arg3:IntRectangle):void{
        }
        override public function getBorderInsetsImp(_arg1:Component, _arg2:IntRectangle):Insets{
            return (this.margin.clone());
        }

    }
}//package org.aswing.border 
